﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FD3 RID: 4051
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueSyncContextBoardEvent : IMessage<RogueSyncContextBoardEvent>, IMessage, IEquatable<RogueSyncContextBoardEvent>, IDeepCloneable<RogueSyncContextBoardEvent>, IBufferMessage
	{
		// Token: 0x1700333F RID: 13119
		// (get) Token: 0x0600B532 RID: 46386 RVA: 0x001E8FA5 File Offset: 0x001E71A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueSyncContextBoardEvent> Parser
		{
			get
			{
				return RogueSyncContextBoardEvent._parser;
			}
		}

		// Token: 0x17003340 RID: 13120
		// (get) Token: 0x0600B533 RID: 46387 RVA: 0x001E8FAC File Offset: 0x001E71AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueSyncContextBoardEventReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003341 RID: 13121
		// (get) Token: 0x0600B534 RID: 46388 RVA: 0x001E8FBE File Offset: 0x001E71BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueSyncContextBoardEvent.Descriptor;
			}
		}

		// Token: 0x0600B535 RID: 46389 RVA: 0x001E8FC5 File Offset: 0x001E71C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueSyncContextBoardEvent()
		{
		}

		// Token: 0x0600B536 RID: 46390 RVA: 0x001E8FCD File Offset: 0x001E71CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueSyncContextBoardEvent(RogueSyncContextBoardEvent other) : this()
		{
			this.boardEventId_ = other.boardEventId_;
			this.modifierEffectType_ = other.modifierEffectType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B537 RID: 46391 RVA: 0x001E8FFE File Offset: 0x001E71FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueSyncContextBoardEvent Clone()
		{
			return new RogueSyncContextBoardEvent(this);
		}

		// Token: 0x17003342 RID: 13122
		// (get) Token: 0x0600B538 RID: 46392 RVA: 0x001E9006 File Offset: 0x001E7206
		// (set) Token: 0x0600B539 RID: 46393 RVA: 0x001E900E File Offset: 0x001E720E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BoardEventId
		{
			get
			{
				return this.boardEventId_;
			}
			set
			{
				this.boardEventId_ = value;
			}
		}

		// Token: 0x17003343 RID: 13123
		// (get) Token: 0x0600B53A RID: 46394 RVA: 0x001E9017 File Offset: 0x001E7217
		// (set) Token: 0x0600B53B RID: 46395 RVA: 0x001E901F File Offset: 0x001E721F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ModifierEffectType
		{
			get
			{
				return this.modifierEffectType_;
			}
			set
			{
				this.modifierEffectType_ = value;
			}
		}

		// Token: 0x0600B53C RID: 46396 RVA: 0x001E9028 File Offset: 0x001E7228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueSyncContextBoardEvent);
		}

		// Token: 0x0600B53D RID: 46397 RVA: 0x001E9036 File Offset: 0x001E7236
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueSyncContextBoardEvent other)
		{
			return other != null && (other == this || (this.BoardEventId == other.BoardEventId && this.ModifierEffectType == other.ModifierEffectType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B53E RID: 46398 RVA: 0x001E9074 File Offset: 0x001E7274
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BoardEventId != 0U)
			{
				num ^= this.BoardEventId.GetHashCode();
			}
			if (this.ModifierEffectType != 0U)
			{
				num ^= this.ModifierEffectType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B53F RID: 46399 RVA: 0x001E90CC File Offset: 0x001E72CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B540 RID: 46400 RVA: 0x001E90D4 File Offset: 0x001E72D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B541 RID: 46401 RVA: 0x001E90E0 File Offset: 0x001E72E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BoardEventId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.BoardEventId);
			}
			if (this.ModifierEffectType != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.ModifierEffectType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B542 RID: 46402 RVA: 0x001E913C File Offset: 0x001E733C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BoardEventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BoardEventId);
			}
			if (this.ModifierEffectType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ModifierEffectType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B543 RID: 46403 RVA: 0x001E9194 File Offset: 0x001E7394
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueSyncContextBoardEvent other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BoardEventId != 0U)
			{
				this.BoardEventId = other.BoardEventId;
			}
			if (other.ModifierEffectType != 0U)
			{
				this.ModifierEffectType = other.ModifierEffectType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B544 RID: 46404 RVA: 0x001E91E4 File Offset: 0x001E73E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B545 RID: 46405 RVA: 0x001E91F0 File Offset: 0x001E73F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ModifierEffectType = input.ReadUInt32();
					}
				}
				else
				{
					this.BoardEventId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004940 RID: 18752
		private static readonly MessageParser<RogueSyncContextBoardEvent> _parser = new MessageParser<RogueSyncContextBoardEvent>(() => new RogueSyncContextBoardEvent());

		// Token: 0x04004941 RID: 18753
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004942 RID: 18754
		public const int BoardEventIdFieldNumber = 8;

		// Token: 0x04004943 RID: 18755
		private uint boardEventId_;

		// Token: 0x04004944 RID: 18756
		public const int ModifierEffectTypeFieldNumber = 15;

		// Token: 0x04004945 RID: 18757
		private uint modifierEffectType_;
	}
}
